package org.qiyu.live.gateway.properties;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

import java.util.List;


/**
 * 类功能描述:GatewayApplicationProperties
 *
 * @Author: 张广焱
 * @Date: 2024-04-22  19:49:12
 * @Version: 1.0.0
 */
@ConfigurationProperties(prefix = "qiyu.gateway")
@Configuration
@RefreshScope //动态刷新配置
public class GatewayApplicationProperties {
    private static final Logger logger = LoggerFactory.getLogger(GatewayApplicationProperties.class);
    private List<String>notCheckUrlList;

    public List<String> getNotCheckUrlList() {
        return notCheckUrlList;
    }

    public void setNotCheckUrlList(List<String> notCheckUrlList) {
        logger.info("notCheckUrlList is {}",notCheckUrlList);
        this.notCheckUrlList = notCheckUrlList;
    }

    @Override
    public String toString() {
        return "GatewayApplicationProperties{" +
                "notCheckUrlList=" + notCheckUrlList +
                '}';
    }
}
